package edu.zhku;

import java.io.File;

public class fileAction {


	public static void main(String[] args) {
		File file = new File("F:\\action.txt");
	
		try
		{
			String path = file.getPath();
			String parent = file.getParent();
			String name = file.getName();
			
			System.out.println(path);
			System.out.println(parent);
			System.out.println(name);
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
	}

}
